package com.ruoyi.car.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.car.entity.CarStore;
import com.ruoyi.car.service.CarStoreService;
import com.ruoyi.car.mapper.CarStoreMapper;
import com.ruoyi.common.core.page.PageReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 11452
* @description 针对表【car_store(仓库信息表)】的数据库操作Service实现
* @createDate 2023-06-05 14:31:14
*/
@Service
public class CarStoreServiceImpl extends ServiceImpl<CarStoreMapper, CarStore>
    implements CarStoreService{
    @Autowired
    private CarStoreMapper carStoreMapper;
    @Override
    public PageInfo<CarStore> search(PageReq req) {
        return  PageHelper.startPage(req.getPage(),req.getSize())
                .doSelectPageInfo(()->{
                    //查询数据
                    carStoreMapper.selectList(null);
                });
    }
}




